﻿using System;

class NumbersBetweenIntegers
{
    static void Main()
    {
        //Exercise 4.
        //Write a program that reads two positive integer numbers and prints how many numbers p exist between them such that 
        //the reminder of the division by 5 is 0 (inclusive). Example: p(17,25) = 2.

        Console.Write("Enter the first positive integer: ");
        uint number1 = uint.Parse(Console.ReadLine());
        Console.Write("Ener the second positive integer: ");
        uint number2 = uint.Parse(Console.ReadLine());
               
        int counter = 0;

        for (uint i = number1; i <= number2; i++)
        {
            if (i % 5 == 0)
            {
                counter++;               
            }            
        }
        Console.WriteLine();
        Console.WriteLine(counter);
        Console.WriteLine();
    }
}

